<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录</title>
    <link rel="stylesheet" href="../css/login.css">
    <link rel="stylesheet" href="../css/reset.css">
</head>

<body>
    <div id="box">
        <div v-for="head in header" class="header">
            <span v-html="head.a"></span>
            <h2 v-text="head.h2"></h2>
        </div>
        <div class="content1">
            <div v-for="content in contentone" class="content">
                <p>
                    {{content.p1}}
                    <span v-html="content.input1"></span>
                </p>
                <p class="p2">
                    {{content.p2}}
                    <span v-html="content.input2" class="span2"></span>
                </p>
            </div>
        </div>
        <div class="foot">
            <div v-for="foot in footer" class="footer">
                <p v-html="foot.p"></p>
            </div>
        </div>
    </div>

</body>

</html>
<script src="../nodejs/node_modules/vue/dist/vue.js"></script>
<script>
    let vm = new Vue({
        el: "#box",
        data: {
            header: [{
                a: "<a href='wode.html'><</a>",
                h2: "用户登录"
            }],
            contentone: [{
                p1: "用户名:",
                input1: "<input type='text'>"
            }, {
                p2: "密码:",
                input2: "<input type='password'>"
            }],
            footer: [{
                p: "<button>登录</button>",
            }, {
                p: "<button>注册</button>"
            }]
        }

    })
</script>